﻿<Window x:Class="BizControl.Presentation.Infrastructure.Controls.ConfirmationDlg"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        AllowDrop="True"
        ResizeMode="NoResize" AllowsTransparency="True" SizeToContent="WidthAndHeight"
        WindowStyle="None" WindowStartupLocation="CenterScreen"
        BorderBrush="{StaticResource MainBorderBrush}" BorderThickness="3"
        Background="Transparent"
        x:Name="confirmationDlg">
    
    <Grid Background="{StaticResource MainBackgroundBrush}">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <TextBlock Margin="5" Text="{Binding ElementName=confirmationDlg, Path=Title}" FontWeight="Bold" />
        <Border BorderThickness="0,0,0,1" BorderBrush="{StaticResource BorderLightBrush}" VerticalAlignment="Bottom" />

        <TextBox Margin="5" Grid.Row="1" x:Name="tbContent" TextWrapping="Wrap" Width="300" Height="100" IsReadOnly="True" Background="Transparent"
                 VerticalScrollBarVisibility="Auto" />
        <Border Grid.Row="1" BorderThickness="0,0,0,1" BorderBrush="{StaticResource BorderLightBrush}" VerticalAlignment="Bottom" />

        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="2">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="10">
                <TextBlock HorizontalAlignment="Center">
                    <Hyperlink x:Name="ConfirmButton" Click="ConfirmButton_Click">
                        <TextBlock x:Name="ConfirmText" />
                    </Hyperlink>
                </TextBlock>
                <Grid>
                    <ContentControl Width="20" Height="20" Content="{StaticResource OkPath}" />
                </Grid>
                <Border Margin="5" BorderThickness="0,0,1,0" BorderBrush="{StaticResource SolidBorderBrush}" />
            </StackPanel>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="10">
                <TextBlock HorizontalAlignment="Center">
                    <Hyperlink Click="CancelButton_Click">
                        <TextBlock x:Name="CancelText" />
                    </Hyperlink>
                </TextBlock>
                <Grid>
                    <ContentControl Width="20" Height="20" Content="{StaticResource CancelPath}" />
                </Grid>
                <Border Margin="5" BorderThickness="0,0,1,0" BorderBrush="{StaticResource SolidBorderBrush}" />
            </StackPanel>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="10">
                <TextBlock HorizontalAlignment="Center">
                    <Hyperlink Click="ConfirmWithoutDoingAnything_Click">
                        <TextBlock x:Name="ConfirmWithoutDoingAnythingText" />
                    </Hyperlink>
                </TextBlock>
                <Grid>
                    <ContentControl Width="20" Height="20" Content="{StaticResource CancelPath}" />
                </Grid>
            </StackPanel>
        </StackPanel>
    </Grid>
</Window>
